#ifndef CAMERADIALOG_H
#define CAMERADIALOG_H

#include <QDialog>
#include "Camera/CameraAttribute.h"
#include "Camera/cameramanager.h"
#include <QSerialPort>
namespace Ui {
class CameraDialog;
}

class CameraDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CameraDialog(QWidget *parent = nullptr);
    ~CameraDialog();

private:
    Ui::CameraDialog *ui;
	//QSerialPort *m_serialLight;
    void InitListWidget();
    AttrCtrlMap m_attrMap;
    CameraManager *m_cameraMgr;
	//QString m_savePath;
    void updateAttributeCtrl();
	//void OpenComLight();
	//void GetLight(bool isRed);
	//void SetLight(int light, bool isRed);
	//void closeEvent(QCloseEvent *);
private slots:
    void SliderValueChanged();
    void EditTextChanged();
	
	//void SliderValueChangedRed();
	//void EditTextChangedRed();
	//void SliderValueChangedWhite();
	//void EditTextChangedWhite();
};

#endif // CAMERADIALOG_H
